<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/wesite/view/common/base.jsp"%>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>个人中心</title>
    <%@ include file="/wesite/view/common/common.jsp"%>
    <style>
        .my-center-nav ul li a {
            display: block;
        }
        .sign{
            position: absolute;
            text-align: center;
            line-height: 0.8rem;
            bottom: 0.53rem;
            right: 0.53rem;
            border: 1px solid #fff;
            width: 2.64rem;
            height: 0.96rem;
            border-radius: 0.213rem;
        }
        .sign a{
            font-size: 0.64rem;
            letter-spacing: 0.1066rem;
            color: #fff;
        }
        .model-lu{
            padding: 0.55rem 0;
        }
        .model-lu i{
            font-size: 0.586rem;
        }
        .model-Entrance{
            height: 5.33rem;
            background: #fff;
        }
        .model-Entrance li{
            float: left;
            margin: 0 0.933rem;
            text-align: center;
        }
        .model-Entrance li i{
            font-style: normal;
            color: #999;
        }
        .model-Entrance img{
            width: 2.666rem;
            height: 2.666rem;
            display: block;
            margin-bottom: 0.37rem;
        }
        .model-uls{
            padding: 0 0.933rem;
        }
        .my-center .top .fl p{
            width: 10.13333rem;
        }
    </style>
</head>
<body>
    <div class="my-center">
        <div class="top" style="height: 8rem;">
            <div class="avatar" onclick="javascript:location.href='/we/user/wehome';">

                <c:if test="${not empty wbuser.photo}">
                    <img src="<%=getRandomFileserver()%>${wbuser.photo}" />
                </c:if>
                <c:if test="${empty wbuser.photo}">
                    <img src="${webctx }/images/uhead.jpg" />
                </c:if>
                <%--<span>${user.nickname}</span>--%>
            </div>
            <div class="fl">
                <p class="discount"><span>${wbuser.nickname}</span></p>
                <p class="integral"><span>${wbuser.wcname}</span></p>
            </div>
            <a class="message" href="javascript:window.location.href='/we/user/loadMyMessage';"></a>
            <div class="sign">
                <a href="/we/home/integral-center">签到</a>
            </div>
        </div>
        <div class="model-Entrance">
            <div class="model-lu">
                <ul class="model-uls">
                    <li>
                       <a href="/we/home/my-coupon">
                           <img src="${webctx}/images/youhuijun.png">
                           <i>优惠劵</i>
                       </a>
                    </li>
                    <li>
                        <a href="/we/home/integral">
                            <img src="${webctx}/images/wodejifen.png">
                            <i>我的积分</i>
                        </a>
                    </li>
                    <li>
                       <a href="/we/collect">
                           <img src="${webctx}/images/wodeshouchang.png">
                           <i>我的收藏</i>
                       </a>
                    </li>
                    <li>
                       <a href="/we/loginHistory">
                           <img src="${webctx}/images/lishicaigou.png">
                           <i>历史采购</i>
                       </a>
                    </li>
                    <div class="cl"></div>
                </ul>
            </div>
        </div>
        <div class="my-center-order mt20">
            <h3>我的订单</h3>
            <ul>
                <li class="all my-center-order-item">
                    <a href="/we/WeOrderlist?status=1000">
                        <i class="ico"></i>
                        <span>全部</span>
                    </a>
                </li>
                <li class="wait-pay my-center-order-item">
                    <a href="/we/WeOrderlist?status=1">
                        <c:if test="${ordernum.getInt('status1') > 0}"><i class="num">${ordernum.getInt("status1")}</i></c:if>
                        <i class="ico"></i>
                        <span>待付款</span>
                    </a>
                </li>
                <li class="wait-send my-center-order-item">
                    <a href="/we/WeOrderlist?status=3">
                        <c:if test="${ordernum.getInt('status3') > 0}"><i class="num">${ordernum.getInt("status3")}</i></c:if>
                        <i class="ico"></i>
                        <span>待发货</span>
                    </a>
                </li>
                <li class="wait-receive my-center-order-item">
                    <a href="/we/WeOrderlist?status=7">
                        <c:if test="${ordernum.getInt('status7') > 0}"><i class="num">${ordernum.getInt("status7")}</i></c:if>
                        <i class="ico"></i>
                        <span>待收货</span>
                    </a>
                </li>
                <li class="done my-center-order-item">
                    <a href="/we/WeOrderlist?status=11">
                        <i class="ico"></i>
                        <span>已完成</span>
                    </a>
                </li>
            </ul>
        </div>
        <div class="my-center-nav mt20">
            <ul>
                <li class="keep-a-list">
                    <a href="/we/article/list">
                        <span class="tit" style="color: #333 !important;">帮助中心</span>
                        <span class="arrow-r"></span>
                    </a>
                </li>

                 <li class="collect">
                      <a href="/we/user/wxfeedback">
                          <span class="tit" style="color: #333 !important;">意见反馈</span>
                          <span class="arrow-r"></span>
                      </a>
                  </li>
                <li class="discount">
                    <a href="/we/article/agreement">
                        <span class="tit coupons-tit" style="color: #333 !important;">用户协议</span>
                        <span class="arrow-r"></span>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <%request.setAttribute("bottomMenuId","my");%>
    <%@ include file="/wesite/view/common/bottom.jsp"%>

</body>
</html>
<script>
    $(function () {
        $w.httpRequest({
            url:apiroot+"/user/userNoNum",
            data:{},
            ok:function(ret){
                var data = ret.Data;
                var newsnum = data.newsnum
                if(newsnum >0){
                    $(".message").addClass("message-have");
                }else {
                    $(".message").removeClass("message-have");
                }

            }
        })
    })
</script>
